package com.twu.biblioteca.library.items;


/**
 * Created by aruna on 27/4/14.
 */
public class User {
    private String Name,Address,PhoneNumber,Email;
    private boolean isLoggedIn;
    private UserCredential userCredential;
    public User(String name,String address,String phoneNumber,String email,String librarynumber,String password)
    {
        Name=name;
        Address=address;
        PhoneNumber=phoneNumber;
        Email=email;
        userCredential=new UserCredential(librarynumber,password);

    }
    public UserCredential getUserCredential(){return userCredential;}
    public void setLoggedIn(boolean value){isLoggedIn=value;}
    public String toString()
    {
        String UserAsString;
        UserAsString="Name :\t"+Name+"\n"+"Address :\t"+Address+"\n"+"PhoneNumber: \t"+PhoneNumber+"\n"+"Email :"+Email+"\n";
        return UserAsString;
    }
    public boolean isLoggedIn(){return isLoggedIn;}
}


